home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / mc220.zip / LC86.BAT < prev    next >
DOS Batch File  |  1992-02-24  |  751b  |  32 lines

  1. @echo off
  2. rem *
  3. rem * Link object modules with libraries into ".COM" file
  4. rem *
  5. rem * Copyright 1988,1992 Dave Dunfield
  6. rem *
  7. echo MICRO-C 8086 Link Command by Dave Dunfield.
  8. if .%1 == . goto help
  9. if .%MCDIR% == . set MCDIR=\mc
  10. if .%1 == .-s goto small
  11. :tiny
  12. echo Linking TINY model...
  13. link/noi %MCDIR%\PC86RL_T %1 %2 %3 %4 %5 %6 %7 %8 %9,%1,NUL,%MCDIR%\MCLIB;
  14. if errorlevel 1 goto fail
  15. echo Converting...
  16. exe2bin %1 %1.COM
  17. del %1.EXE
  18. goto stop
  19. :small
  20. if .%2 == . goto help
  21. echo Linking SMALL model...
  22. shift
  23. link/noi %MCDIR%\PC86RL_S %1 %2 %3 %4 %5 %6 %7 %8 %9,%1,NUL,%MCDIR%\MCLIB;
  24. if errorlevel 1 goto fail
  25. goto stop
  26. :help
  27. echo Use: "%0 [-s] <filename(s)> ..."
  28. goto stop
  29. :fail
  30. echo Link aborted due to errors!!!
  31. :stop
  32.